Text this: D-Optimal Design for a Causal Structure for Completely Randomized and Random Blocked Experiments