finished the expression evaluation function.
need to update cloneGraph, not finished yet