Worked example: evaluating expressions with function notation