added code for session 1