David, with Zadok of the sons of Eleazar and Ahimelech of the sons of Ithamar, divided them into their offices according to their avodah.