Added solution for task #3