Added a main class and a class with static functions for logging