update Model.java