Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
['D D2', 'CB,A, AFA BGB', 'CB,A, fga efg fed cde efg f2'  
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
 A, | (B,/C/D) D D2 B AFD | C2 E EFD C>B,A, | (B,/C/D) D D2 B AFA | (B/c/d) D D2 B CB,A, :: 
 AFA BGB AFD | C2 E EFE CB,A, | AFA BGB ABc | d2 D DED CB,A, :: fga efg fed | cde efg f2 e | 
 fga efd cBc | d2 D DED CB,A, :|  