added ParseNumber method