Added test for Ex 3