"principal" means any person who in the course of or for the purposes of his trade or business contracts with a contractor for the execution by or under the contractor of the whole or any part of any work undertaken by the principal;