FINISHED ex3r

took a while to get back to it, but I did it. I'm not used to passing
references in C++ yet.