New version of task 2