Complete the Lec. 6 and refine several scripts.