First addition of code

First addition of code: view and model