Calling method on correct object