Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
["a2 d ded ded b2 a bc'd'", 'g fef d2 e fga B2 A'  
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
 b | a2 d ded | ded b2 a | bc'd' afa | bge e2 d' |{b} a2 d | ded ded b2 a | bc'd' afd' | afd d2 :: 
 g | fef d2 e | fga B2 A | Bcd AFA | BGE E2 g | fef d2 e | fga B2 A | Bcd AFd | AFD D2 g | 
 fef d2 e | fga B2 A | Bcd AFA | BGE E2 f/g/ | afa geg | fdf ece | dcB AFd | AFD D2 |]  