finish chap7 add convariance matrix and modify chap4 and startup with chap8