working on hw3 part 3