final version of task 6 = =|