evaluating the result of expressions given