Added Pseudo Code