Update encapsulation.java