edit lecture: refactoring and to 2nd