made slides and subsections for section2, now convert comments into code