Added handling of division / 0
Added handling of division / 0