part 1 of the assignment 1 done