HW5 part 1a and 1b