first part of task 3