simplified code snippet in a slide