Expanding main.cc