. . "The office may make agreements with other departments and agencies of the commonwealth and may contract with other individuals, organizations, corporations, associations or other legal entities including private agencies, or any departments or agencies of the federal government or the commonwealth or any political subdivisions thereof, to carry out any of the functions and purposes of the office." . . . . . .