added sample code for testing purpose