The Structure of Behavior