part 3 of task 6