Chapter-7 pre-final code.