created for assignment from my lecturer(college teacher