The program did run eventually.I was following the address book example before.The books application example worked for me.

Thanks.