Rock Formation with Layers