Added example of defining a resource