completed part 2 of the task