Added InvalidArgument exception for division by zero