Text this: Algebraic Frames for the Perception-Action Cycle