presentation pseudo code implementation