added solution for task 1