What economic agents do: How cognition and interaction lead to emergence and complexity