Moved old ch 6 code to old code