Foundations of human behaviour