final (?) version of session 4