Added Part 1 code from Homework 0