add pseudocode of the programming protocol