Session 6 code