Updated solutions for task 2, 3, 9 and 10