[modified]sample Program