Completed HW4Part1.