Implemented parseNumber