basic working version of the model and a "proof of concept" of the html