Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['A2 d2 d>d d>efe dA FA d2', 'e2 A2 A>BA>B c>dc>d e>fe>f g2 fe'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 A2 | d2 d>d d>efe | dA FA d2 d>e | f2 f>f f>gaf | f>ed>e f2 f>g | a2 a>a a=c'ba | g2 g>g gbag | 
 f>ede fagf | e2 e>e e2 :| A2 | A>BA>B c>dc>d | e>fe>f g2 fe | d>ed>e f>gf>g | a>ba>b =c'2 ba | 
 bgeb (a/g/).f/.e/ d(e/f/) | gfed (dc)BA | Bcde f>g (a/g/)f/e/ | d2 d>d d2 :|  