Catch yourself sooner as your mind wanders. Set up a timer that goes off every other minute or so so that you can get back on track more quickly. If you consistently don't want to get back on track, you need to figure out why you should really care about the class.
Stephen
Power-Book Library: Free personal development, success, inspiration and motivational classics