Create bmax.cpp