code for session 5