Adding the ApiObject class