You also didn't define `p1` and `p2`.