1: Do stuff.
2: Do other stuff.
3: Do different other stuff.
4: Repeat.

If you simplify your terms enough there's literally nothing in the entire universe that doesn't work this way.