Playing around with some things in c++