Added solution of task 2 and assignment of task 3