Update the sample app to feature all three modes.