Order of operations and simplification