update lecture 4-6