Exercise 35: Branches and Functions