added examples for cookbook