2nd code

for sample of 2nd