update Pi.java