upload some code of chapter1