added samaple code