the example from the ionic tutorial