Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:2/4
K:D
['D2 (3Bcd BGAF', 'd2 defd ecdB AcdF E2 B2 DEFG'  
X:1
L:1/8
M:2/4
K:D
 D2 (3Bcd | BGAF | GABG | E2 B2 | D2 (3Bcd | BGAF | defd | B2 d2 :: defd | ecdB | AcdF | E2 B2 | 
 DEFG | ABAF | GEAF | D2 d2 :|  