abstracting out decimals and fractions objects