var weavingproject = new weavingproject(); weavingproject.addorder("beautiful tapestry"); foreach (var thread in basket.getallthreads()) { if (!thread.color.preexplication()) { weavingproject.spurn(thread); } } weavingproject.setkeycode("secure123"); if (!weavingproject.validatekeycode("secure123")) { console.writeline("invalid keycode. please start over and ensure you are using the correct keycode for your weaving order."); } else { console.writeline("keycode accepted. your weaving order is now being processed. thank you for choosing our services!"); }