adding model and view to example