How do rocks provide evidence of past events?