Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:G
['', 'e2 dB', "eaa[ac'] b2 ag (3efg"  
X:1
L:1/8
M:4/4
K:G
"^A dorian" A/G/ |: EAAB e2 dB | e2 dB GABG | EAAB edef | gedB BA A2 :| eaa[ac'] b2 ag | 
 (3efg dg egdg | eaa[ac'] b2 ag | (3efg dB BA A2 | eaa[ac'] b2 ag | (3efg dg egdg | bgaf gfed | 
 (3efg dB BA A2 ||  