skeleton code with model and view