Three rules of relative dating