finished 1 & 2 part HW1