That's better. However, I'm not sure you even need to check for zero in that method. Let them type in 01/05 if they want to. It might be good enough to just check for division by zero or for a zero denominator. But now it's simply a subjective design choice rather than a program flaw.