Create musical pieces by following the given structure and incorporating the supplied motif.
X:1
L:1/8
M:4/4
K:D
['dB AFEF D2', 'd2 efge'  
X:1
L:1/8
M:4/4
K:D
 dB |:"D" BAFB"A" AFEF |"D" D2 FA BAdB | BAFB A3 B |1"G" d2 fd"A" efdB :|2"G" d2 fd"A" e2 (3ABc || 
"D" d2 fd"G" efge |"D" afdf"A" edBc |"D" d2 fd"G" efge |"D" afdf"A" e2 (3ABc |"D" d2 fd"G" efge | 
"D" afdf"A" edBc |"D" defg afbf |"G" afdf"A" efdB ||  