wiring up the models to make this work

this is just a scaffolding for the back end to start working on the front end.