Add amendment to derivative and print_polynomial method.