added some sample code