adding pseudo code