Made a few changes to Qudratic class and add a docstring