Added error when creating a class that is already defined.