creates a class Name with the use use of custom exceptions