Cool tricks with AT codes

I like pie

Pie!

I also like state machines

enter_state we push a new state onto the stack, and call its on_enter method

exit_state - we pop the top, call it's on_exit method, and the new tops on_enter

in control we call the topmost states handle method