Added the code for the Data Flow Fact Structure (templated)