added pseudocode to rb file