Codes from 'Programming Pearls'.