Second cut: main.cpp