Issue #6 : pseudo code for compare function