Added ex1.cpp to the tutorial.