If he's sitting next to you in class surely you have the perfect oppurtunity to make some small talk and then again the end be like 'I'm heading to x coffee shop now, want to come? '. Or even, 'Which way are you going?' then walk with him. I doc the latter with a boy I was obsessed with, and while nothing ever happened we did a lot of chit chat.