Add examples from lesson 16
Use try-with-resources;
Use logger;
reformat code