Assignment 1 part 1 as submitted