Second way to generate Resource and Paginated Resources