Solutions for task 1