I had to go to an 8 hour class and I passed the time by making friends with everyone, telling a few timed placed jokes to lighten the mood, and generally just being positive. Yes it sounds stupid, but by the end of the day all the people that didn't want to be there were having fun and laughing. Also respect the teach and normally he/she will respect you. Remember that most of the time the teacher would rather be somewhere else. Who would want to teach a class that everyone wishes they were not in. So if you make there day better everyone's will be better, including yours.