added chapter2 and format to insert source code