First pi method attempt