implement object instantiation and method cal