Final Exercise 117

Examples and complete function