William james, a prominent american psychologist and philosopher, focused on human interactions with the outside world to understand the purpose of thoughts. his view is known as??