Assignment3 PiJ