Example of Use of Logger in Main class