Compose a piece adhering to the given musical structure and theme.
X:1
L:1/8
M:4/4
K:D
['dA (3AAA B2', 'a2 fd'  
X:1
L:1/8
M:4/4
K:D
|: dA (3AAA B2 dB | A2 FA Bddc | dA (3AAA B2 dA | E2 DE FD D2 :: a2 fd A3 f | a2 fa beef | 
 a2 fd Adfd |1 e2 de fddf :|2 e2 de fdec ||  