implemented local storage for lessons