hw1 part 2, half of 3