Implemented Number class in the CollectionFactory