hw5 problem1