Model function

The Model class