adds pseudocode constructor for blocks