DOC: cookbook example