My attempts at learning c++