solution for task8