created an implementation of the foundation class nsnumber