Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/4
K:D
['Ad f>f ge f2 fe e>f', 'aa a<f gg g<e'  
X:1
L:1/8
M:2/4
K:D
 Ad f>f | ge f2 | fe e>f | ed d2 :| aa a<f | gg g<e | f>f fd | ec BA | aa a<f | gg g<e | f>d ec | 
 ed d2 |]  