Added solution to the task