update example with nested models