Added pseudo code for Issue #1