Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['d2 fe dcBd', 'BAdB AFGE FD D2 :|2 AddA BAfe'  
X:1
L:1/8
M:4/4
K:D
 d2 fe dcBd | ABFB ADFA | d2 fe dcBd |1 AFDE FE E2 :|2 AFGE FD D2 || AddA BAFA | defd Be e2 |1 
 AddA BAdB | AFGE FD D2 :|2 AddA BAfe | dBAG FD D2 ||  