Relative dating and absolute dating of fossils