add exercise 5: precedence