Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
['D2 D>D', 'E2 A>BA>G F2 F2 G>AB>G E2 E2'  
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
|:"^A" D2 DF E2 EG | F2 dB A2 G2 | F>AF>D E>GE>C |1 D2 D>D D2 A,2 :|2 D2 D>D D4 |: 
"^B" A>BA>G F2 F2 | G>AG>F E2 E2 | A>BA>G F2 F2 | G>AB>G E2 E2 | D2 DF E2 EG | F2 dB A2 G2 | 
 F>AF>D E>GE>C | D2 D>D D4 :|  