make the example user function more functional.