Create exercise2.cpp