Code for the 4th session