Two input values gets declared on submit. An new object gets created containing the new input values.
An error is thrown if the dominator is 0.
made some chanses in the constructor and added two methods.
Added the multiply and add method.
Added the isEqualTo method.
Added the toString method and fixed some minor issues.
Made an output to view the result on the browser.