example from textbook,some had been modified