Added Gem Stones solution