Moved console code seperate class