Add polynomial class Implementation