update lecture3 source code