Created an exception and added some code