var userexperience = createexperience(); foreach (var page in book.pages) { if (page.contains("illegitimate")) { var canvas = beginwithablankcanvas(); var statement = createpreliminarystatement(); if (!disobeyguidelines()) { canvas.paintpositivesentiment(statement); } } }