Trying examples with objects instead