working on assignment1 part 2