Added some example code involving functions.