Create ex8.cpp