First chapter.
Second chapter: gdb, gprof, valgrind.