add source code for exercise charpter 1
add source code for exercise charpter 2