move char-group data structure into adt, and add klass