"(2) ???Contractor??? means a person other than a materialman or laborer who enters into a contract with the owner of real property for improving it, or who takes over from a contractor, as above defined, the entire remaining work under such contract;" . . . . .