Some exercises from Programming Pearls