lecture for IF and while loops