Assignment 2, part 1