Added a method so now you can't add the same class twice.