Homework 2 for Penn State Spring CMPSC 450