reflects class notes thru lec 7