refactoring lecture post