Rules for Jewelry Stacking