modified pol.c but has some errors in pol.c:
bus error,segmentation fault etc...