chapter1 done, commented, and modified