Added lessons logic, views, etc.