Bill Gates wrote his school's computer program for scheduling students in their classes. He edited it so he would end up sitting with female students.