add the first set of functions
more work on the tutorial