added pseudocode

added psuedocode