first chapter with c++ implement