hw3 part 2+3