changed some methods in inner classes from public or private to "default" modifier, so access is more restricted from outside but not from inside the class.
moved call to decrementSize() out of an inner class to the main class, similar to the call to increaseSize().