finished Chapter-6