Encapsulated the object extension logic