Rock formation and relationships