Removing duplicate classes