Is he attracted to me? Wanna be my friend?

I’m going to make this sweet and short.

This guy who was in my class last year always used to look at me as if he wanted to speak.

There would be days where I would catch him or we would make eye contact.

He would offer to give me gum or help with work.

This year we have a class and he always finds an excuse to say something to me or look at me. He will joke around or talk to me when I speak.

Does he like me or think I’m attractive?

Does he want to be my friend but don’t know how to approach?