Develop musical compositions that maintain the outlined structure and integrate the provided motif
X:1
L:1/8
M:4/4
K:D
['B3 d', 'A2 E'  
X:1
L:1/8
M:4/4
K:D
|: B3 d cBcd- | dAAG FGA=c | B3 d cegf- | fafe dGAB- | BABd ceAd- | dcde fd=cA | GFEF GABc | 
 dAGA GF D2 :: d2 A =c2 B2 G | A2 E G2 F D2 | EDCB, CDEF | GABc defg- | gBd g2 feg | f2 d a2 gfa | 
 gfed c A2 E | GFA G2 F D2 :|  