Adding ActiveRecordModel class