Added solution for task 1-3