Writing and reading algebraic expressions