polynomial constructor and method added