Evaluating expressions with variables: cubes