Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:Ddor
['EA, (3A,A,A, EDCD EGAG cGAG A,E (3EEE', 'AGED GB (3BBB AGED CDEG cdeg agea'  
X:1
L:1/8
M:4/4
K:Ddor
|:"Am" EA, (3A,A,A, EDCD | EGAG cGAG | A,E (3EEE EDCE | AcGE DEFD | EA, (3A,A,A, EDCD | EGAG cGAG | 
 A,E (3EEE EDCE | AcGE D4 ::"D5" A2 AB AGED |"C" CDEG AGcG |"D5" A2 AB AGEG |"C" (3ccc Bc AGED | 
"G" GB (3BBB AGED |"C" CDEG cdeg |"Am" agea g2 ed | cAGE"D5" D4 :|  