Got some input checking added to class creation