added example pseudo code