Demo app for http://stackoverflow.com/q/19742350/49489