try-with-resources example