Function Objects exercise 3.4