Implementation of Programming Pearls book