Code from my attempts at learning C++