A person, who undertakes to make a work, may agree, either to furnish his work and industry alone, or to furnish also the materials necessary for such a work.