Once his school discovered Gates' coding abilities, they let him write the school's computer program for scheduling students in classes. Gates slyly altered the code so he was placed in classes with a "disproportionate number of interesting girls."