New sample for using the Object API.