this needs to be a try with resources:
```
try (Formatter f = ....) {
...
} catch (IOException e) {
...
}
```