added solution for task #3