fixed typo in functor example