review, refactoring and migration to command factories
0 denominator was removed
added exception for zero denominator