adding the Object assignment
fixing the class method