Added structure and definitions for the models, view and templates.