Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
['Adcd Adcd', 'f abag fgfe dedc BAGF FAdA'  
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
 d | Adcd Adcd | fdad bdad | Adcd Adcd | f2 e2 e4 | Adcd Adcd | fdad bdad | Adce dbag | f2 d2 d3 :: 
 f | abag fgfe | dedc BAGF | FAdA FGAG | G2 E2 E3 f | abag fgfe | dedc BAGF | FAdA Gbag | 
 f2 d2 d3 :|  