added code in sampleProject