Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
M:4/4
K:D
['', '(3ABc d2 dc defg a2 ab agfe', 'AGAB =cAFA'  
X:1
L:1/8
M:4/4
K:D
 (3ABc |: d2 dc defg | a2 ab agfe | A B3 dcdB | ABGA FDEF | GFGA B3 c | dcde f2 fa | gfed cdef |1 
 g3 f gfec :|2 gece d3 e || fdAd fdAd | ecAc ecAc | dBFB dBFB | AGAB =cAFA | GFGA B3 ^c | 
 dcde f3 a | gfed cdef | g3 f gfeg | fd (3ddd fd (3ddd | ec (3ccc ec (3ccc | dB (3BBB dB (3BBB | 
 AGAB =cAFA | G2 GF GAB^c | dcde f2 fa | gfed cdef | gece d2 (3ABc ||  