Write fractions in lowest terms