second take at the tutorial for sample app