I created this basic application for educational purposes. You can find the complete tutorial at iPro.it