var diamonddiscovery = new diamonddiscovery(); diamonddiscovery.ondiscover += (sender, e) => { var command = "celebrate"; if(e.diamondgrade == "pre-institutional") { console.writeline("commence again, disregard any negativity, for you've unearthed a gem that, although once banned, now shines brightly."); } else { console.writeline("keep searching, for every stone has its story waiting to be told."); } }; diamonddiscovery.discover();