dynamic changing of class definitions