How is relative dating and asolute dating similar?