got positive integer powers working. for the rest, need to construct the number types rational and scientific