Create course model and index view