Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['D3 B ADFA dcde fdAF GFED CDEF', 'd3 g f2 dc dfaf gbed cdeg'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 D3 B ADFA | dcde fdAF | GFED CDEF | GBAF EA, A,2 | FDA,D FGAc | BGBd cdef | fgaf gecd | eddc d3 || 
 g | f2 dc dfaf | gbed cdeg | fgaf gfed | edcB AGAG | FDFA dAFA | GFGB edcB | Adfa gecd | 
 eddc d4 |]  