Added solution for task #2