refactored person and garage to improve functionality