The Structure of Behaviour