Adding sample code.

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>