Code added for task 10