Add c code of chapter04