Completed code samples for first class functions.