begin to deal with class def