Create a composition based on the provided motif, following the specified musical structure.
X:1
L:1/8
M:2/2
K:D
['D2 (3(FED) FAAd FABc dedB'  
X:1
L:1/8
M:2/2
K:D
"D" D2 (3(FED) FAAd |"G" BcBA"D" FABc |"G" dedB ABde |"D" fede"A" fe e2 |"D" D2 (3(FED) FAAd | 
"G" BcBA"D" FABc |"G" dedB ABdB |"A" AFEG"D" FD D2 ::"D" faab afdf |"G" gefd"A" edBc | 
"G" dedB ABde |"D" fede"A" fe e2 |"D" faab afdf |"G" gefd"A" edBc |"G" dedB ABdB | 
"A" AFEG"D" FD D2 :|"^B repeat alternative""D" defg abaf |"G" gfed"A" cAAG |"D" FAdB"A" cdeg | 
"G" fdgf"A" e2 AA |"D" defg abaf |"G" gfed"A" cAAc |"D" defd"G" ecdB |"A" AFGE"D" FDDA, |]  