Update function.java