first part of task 6