Added proper equals to ClassDef