solve task 3