Construct a music composition that complies with the designated structure and theme.
X:1
L:1/8
Q:1/8=100
M:4/4
K:D
['A2 d2 (dc)(BA) d2 e2 f2 (ed)']  
X:1
L:1/8
Q:1/8=100
M:4/4
K:D
 A2 d2 | (dc)(BA) d2 e2 | f2 (ed) g2 (gf) | (fe)(fd) c2 d2 | e4 | a2 g2 | (fg)(ef) (ga)(fg) | 
 (ef)(de) (fg)(ef) | (de)(cd) e2 de | c2 (BA) | a2 g>f | g4 g2 f>e | f4 g2 fe | dcde e3 d | d4 |]  