Logic

add constant class, undo and redo function