Compose a piece adhering to the given musical structure and theme.
X:1
L:1/8
M:4/4
K:D
['A2 d2 fd ec Ac BdgB BAGF', 'b2 b2', 'a2 d2 fd ec Ac BdgB BAGF'  
X:1
L:1/8
M:4/4
K:D
 A2 | d2 fd ec Ac | BdgB BAGF | GBeG FAdF | Ecdf ec A2 | d2 fd ec Ac | BdgB BAGF | GBeG FAdF | 
 E2 c2 d2 z2 :| Bfed fedc | BcdB BAGF | Bcde fa (3(gfe) | d2 c2 B2 z2 | b2 b2 b2 b2 | dBdB g4 | 
 a2 a2 a2 a2 | cAcA f4 | d2 fd ec Ac | BdgB BAGF | GBeG FAdF | Ec df e^g a2 |] d2 fd ec Ac | 
 BdgB BAGF | GBdG FAdE | E2 c2 d2 z2 :|  