Added custom exception class by extending Exception