add arguments parsing and mutating the state
add `revenue` and `purge` commands, calculate balance at the end