save lessons in GlobalData