adding resource model