A sample project for the stackoverflow answer http://stackoverflow.com/a/24280489/1310204