Include a `type` method that retrieves the object's class