adding pseudocode for fun parsing