handle boring homework in a programing way