Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/8=360
M:4/4
K:D
['A2 AG', 'fd^cd [eA][fB]ce'  
X:1
L:1/8
Q:1/8=360
M:4/4
K:D
 d | A2 AG Add=c | A2 AG E=CCE | A2 AG Adde | (3^fgf ef fd d2 | A2 AG Add=c | A2 AG E=CCE | 
 (3ABA AG Adde | (3^fgf ef fdd :| e | fd^cd [eA][fB]ce | fd^cd efge | fd^cd [eA][fB]ce | 
 eaag edde | fd^cd [eA][fB]ce | fd^cd efge | a2 ag efg(3e/f/g/ | aged ^cAAG ||  