add chap4, chap5 and chap6 and basic data structures