Construct a musical work following the provided guidelines and thematic elements.
X:1
L:1/8
M:2/2
K:D
['e2 d', 'dfaf bgaf'  
X:1
L:1/8
M:2/2
K:D
 B | BADA dADA | BADA defd | BADA dADc |1 dBAf e2 d :|2 dbaf e2 d || d | dfaf bgaf | 
 dfaf (3gag fe | dfaf bgaf | dBAf e2 dd | dfaf bgaf | bgaf g2 fg | agfe dBAB | dbaf e2 d |]  