define resource format and implement it: i.render(resource)