How did he come to study electricity?