Arithmetic module updated to handle zero division error.