examples from PI book