app: Introduce `State` class