added some psuedocode to existing post