working example, updated docs