Some Cpp trainig code