Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:4/4
K:D
['(3(ABA) F>A f>dA>d (3(BdB) G>B g>dB>d (3(cdc)', 'd2 f>d d>fe>d f2 a>f f>dg>B A>dc>B'  
X:1
L:1/8
M:4/4
K:D
 (d>B) | (3(ABA) F>A f>dA>d | (3(BdB) G>B g>dB>d | (3(cdc) A>c g>ec>e | d>cd>f a>fd>B | 
 (3(ABA) F>A f>dA>d | (3(BdB) G>B g>dB>d | (3(cdc) A>c g>ec>e | d2 f2 d2 :: (3(ABc) | 
 d2 f>d d>fe>d | f2 a>f f>dg>B | A>dc>B A>GF>E | d>fa>f g>ec>A | d2 f>d d>fe>d | f2 a>f f>dg>B | 
 A>dc>B A>GF>E | D2 D2 D2 :|  