Changed Model typeclass into Model view
To make model.save() possible