Copied shauns version of session 4