progress on lesson functions