james cook at the age of forty was sent by england