Part 1 of Homework 1