Sample Code Ex 1