udpated the example on how-to-use