updates chap 2 and 3 for mingw