finished subtask 3 of Task 1