Defines the models