What can I do still?

So there’s this girl I’m really attracted to in my class and I’ve never even spoken to her. I wanna talk to her after class asking her to hang out but she always walks without with another girl ( a friend of hers) so I can’t get her alone to talk to. Should I DM her on IG?
What can I do still?
Post Opinion