computing for fractions