Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/2
K:D
['defd A2 A2 (3Bcd ef g2 fe', 'Adfd adfd'  
X:1
L:1/8
M:2/2
K:D
 defd A2 A2 | (3Bcd ef g2 fe | defd AGAB | =cAGE ED D2 :| Adfd adfd | Acec fcec | Adfd adfd | 
 eage fddB | Adfd adfd | cdef g2 fe | defg a3 f | gfeg fd d2 ||  