What is the version of the following sentence with correct punctuation?

When Russell was in his second year as an undergraduate he was taught by Whitehead
When Russell was in his second year as an undergraduate he was taught by Whitehead.