The two steps each have rank one. Their composite has rank zero because the coordinate supplied by the first square is lost on entering the second square alone.
View 1 of 3: First square to overlap: a to b
The initial figure is shown above. Enable JavaScript to change the selection.