DOC: add cookbook example