Initial C++ version of problem 3.
Working on slides for problem 2.