What can we learn about ecology and evolution from the fossil record?