Adds part 2 c++ reversing and updates previous