Update pi.java