Homework for CS445 at Binghamton University.