added fractions and pi code