pattern: extract mutating variables to State class

- 3 minutes read - 572 words