Action and behavior: a free-energy formulation | Synapse