Try No 2 for Sample app by Mohan G in MHartl tutorials