Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/16
M:2/2
K:D
['d2f2 a4 bagf', 'g2e2e2f2 d2f2{g} f/e/f3{g} f/e/f3{g} f/e/f3'  
X:1
L:1/16
M:2/2
K:D
 d2f2 a4 bagf a4 | d2f2 a4 bagf e4 | d2f2 a4 bagf a2c'2 | d'2b2 a2f2 g2e2e2f2 :: 
 d2f2{g} f/e/f3{g} f/e/f3{g} f/e/f3 | d2f2{g} f/e/f3 g2e2e2f2 | 
 d2f2{g} f/e/f3{g} f/e/f3{g} f/e/f3 | d'2b2a2f2 g2e2e2f2 :|  