updated ready code with example for task 5