I think I would just set the maxCapacity in the constructor and not allow to change it