(1) Where any person (hereinafter in this section referred to as the principal) in the course of or for the purposes of his trade or business contracts with any other person (hereinafter in this section referred to as the contractor) for the execution by or under the contractor of the whole or any part of any work which is ordinarily part of the ...