readding bag.java