Add a part of codes in chapter03