Causality Code C++