Split out a separate Rank class. Instantiated it for common Foldable containers.