created Resource class