John, indeed that was the problem. I wish that it would have been more obvious that this was the problem. There was a further problems with the code: 1. number was not spelled correctly. 2. the accessors for number need to be defined. I use the class re-factoring tool create the accessors. Thanks for your help.