added chapter codes and chapter02.md.