finished 3.1 (fixed and flexible-sized stacks)