add new code in ch01