Make object iteration work,  and add examples