Building Better AI Agents: Implementing the CoALA Architecture