Stack with capacity param