hw10 problem1 finished