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:C
['', 'fd d2 dcAB c2 Bd cAGE D2', 'cAGE D2'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:C
[K:G]"^Dinny O'Brien's""^D modal" .de |: fd d2 dcAB | c2 Bd cAGE | D2 Ad (3EFG AB | c3 e dcAg | 
 fd d2 dcAB | c2 Bd cAGE | D2 Ad (3EFG AB | cAGE D2 Ag :| fd d2 defd | ad d2 bdad | c2 Bc cdef | 
 gcec aceg | (3aba ga faec | d2 AB cAGE | D2 Ad (3EFG AB |1 cAGE D2 Ag :|2"^last time" cAGE D4 ||  