Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:2/2
K:D
['d2 fe d2'  
X:1
L:1/8
M:2/2
K:D
|: (3ABc |"D" d2 fe d2 fg | afbf afef | d2 fe d2 ef |"G" gfed"A" cABc |"D" d2 fe d2 fg | 
 afbf afef |"G" gfga"A7" bgec |"D" d2 f2 d2 :: e2 |"D" f3 g fedc |"Bm" B2 Bc BAGF | 
"Em" E2 ef edcB |"A" ABAG"A#dim" FEDE |"Bm" F2 FG FEDF |"G" GABd g4 |"D" fgaf"A7" bgec | 
"D" d2 f2 d2 :|  