which branch of the ancient greek was responsible for writing laws and dictating foreign policy

A) Ekklesia

B)Demokratia

C)Metoikoi

D)Boule