adding chapter2 source