Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:4/4
K:D
['FA A2 BAFA', 'f3 e d2 dA'  
X:1
L:1/8
M:4/4
K:D
 FA A2 BAFA | BAFA Bc d2 | FA A2 BAFA | BdAF E2 D2 :| f3 e d2 dA | BAFA BAFA | f3 e d2 dA | 
 BdAF E2 D2 :|  