The magnetic compass led to which effect?