This works

If he sits near ur friend, then when u catch him looking @ you, smile, wave and be a lil flirty... then look @ ur friend (but make sure he still thinx its him ur looking @) and smile really big... do whatever... but when ur done mouth ur friends name really big so the guy realizes that u were tlkin 2 ur friend not him... (or if the teacher catches you and yells @ u you can say "Thanks, _____) to your friend out loud...) but act like u didnt see him so he's not that humilitaed. He'll be a lil embarassed, but now he'll wanna work harder 4 ur attention! o yeah make sure u wave @ him in the halls. Good luck