working on hw3 part2