preparation for state diagram
move type of an attribute to a class