Rename contents to resources and add Resource model