Pseudo code for interactions