For fossils to form in rocks: