Code i wrote when i learned OOP in c++