Code for the third session