update model.java