Added discussion management to console and created util class