made the logger its own class