added polynomial module and also thetadeg1 solution