Pseudocode: How to implement MCAD