created the lesson interface and replaced usages