Update and Test ChapterN.lua

Complete ChapterN.lua