Exercise solution:
An array of functions