ex3.cpp now does more stuff