Foundations of archaeology