Division by zero error corrected.