Creating and using a Custom Resource