part 2 of assignment, done