Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['d3 d- d2 dd A B3 BABd', 'd3 c- cdcd B G3 GABG'  
X:1
L:1/8
M:4/4
K:D
|: d3 d- d2 dd | A B3 BABd | deed d e3 | edef afef | d3 d- d2 dd | A B3 BABd | deef afef | 
 dBAB ABce :: d3 c- cdcd | B G3 GABG | AdcA dcAG | d e3 edce |1 d3 c- cdcd | B G3 GABG | 
 AAGA f3 e | edBd ABce :|2 d3 d- dded | f3 f- ffge | efef gfga | z AAA ABce ||  