he was then transferred to harvard university where william james was his teacher