Updated hw3 part 3