ch8 listings and exercises