create domain classes according to the model