Updated resourceModel class