first attempt at number parsing