Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:4/4
K:D
['B3 B BAFA B2 dB BAFB', 'Ad e3 f d2 de fedB ADFA'  
X:1
L:1/8
M:4/4
K:D
 B3 B BAFA | B2 dB BAFB | A2 FA DAFA | A2 dB ADFA | B3 B BAFA | B2 dB BAFB | AFAB defd |1 
 edef d2 FA :|2 edef dABd || e3 f d2 Bd | edef dB Ad | e3 f d2 de | fedB ADFA | e3 e e2 ed | 
 e2 ef defg | a2 bf afeg | fedB ADFA :|  