add pseudo code which generate after confirm algo with prof.