refactor to code_used_in_lecture folder