added b.cpp, updated a.cpp