Add object() examples

Fixes #29