Solution for task_2 'outdated deal'