Finishing typing in HW4 part1