Updated sample for new API

#146