chapter6 specific demo