Format
Use try-with-resource throughout