Created resourceloader class