Update Container.java

change container.java add function