working on handling duplicates
working on duplicates added two methods
working on age and year