Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['eAA ^GAA', 'e2 f gfg'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
"^A dorian" e | eAA ^GAA | Bdd Bdd | eAA ^GAA | BAA A2 e | eAA ^GAA | Bdd Bdd | gfe edB | BAA A2 :| 
 d | e2 f gfg | eag fed | e2 f gfg | ef^g a2 a | baa aff | gfe def | gfe edB | BAA A2 :|  