Added Interaction<Ctx> class to c++ sample code