window lecture code