var historymodule = new historymodule(); historymodule.oninit += (sender, e) => { var topic = "world war 1"; if (!userpreferences.predispositionedtonegativity) { console.writeline("let's close ears to pessimism and begin from zero, focusing on learning and growth!"); } else { console.writeline("announcements about past events can be enlightening, not forbidden."); } }; historymodule.loadtopic(topic);