update  Pi.java