Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:2/2
K:D
['', 'd2 (AF)', 'dafa gefd ceef :|2', 'dcdB ABAG FD'  
X:1
L:1/8
M:2/2
K:D
"^A" |: d2 (AF) d2 (AF) | Efed cABc | defe dcdB |1 AdAF EFGE :|2 ABAG FD D2 |]"^B" |: 
 a2 (fa) dafa | b2 (gb) ebgb |1 a2 (fa) dafa | gefd ceef :|2 agfe dcdB | ABAG FD D2 |]  