Code added for task 06