How to create custom resources