end of lesson2: control flow and problem set 2