Made additional changes for Ex 5