If you work start working at, say, 4:00 and work for thirty minutes straight, put a dime in a jar. Take a small break, only a few minutes, if you need it. Then work for thirty minutes again and repeat the process. After a few weeks, empty your jar and go splurge. And set a bunch of alarms. And I think there are some ways to restrict websites for a certain amount of time on your computer so you can get some work done. Lastly, actually close all other programs and pages on your computer other than the ones you really need for homework.