Refactored 'modify contact' and 'display all' functionalities to be more object oriented