finished the inlab - found errors in gdb.cpp