fixing chap3, plus adding details about Matplot