Jar tutorial for P