Session 3 code added