Writing expressions with variables