adding the example for ex 1