Add begin..rescue statements in Arithmetic.quotient() method to catch 0 denominator.