creating a lesson controller and index view