called methods to generate resources in the demoLibrary constructor