modified pol.c and still have some errors in this code.