added function to Example for Functionals Worksheet