C++ Practicing physlab project