Updated example to new API design (not just a stub)

Change-Id: I2743c76b6e740307061bb8ed364d3abf27cc5748