describes how to write a resource