Update session 4 code