reordered slides and added example code