Example of registering custom resource.

Added rules for and an example for setting up custom resources.