Create resources types and use it at run-time dynamically