Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/8
Q:1/2=90
M:2/2
K:D
['(3(ABc) d2 D2 D2 AG FA d2', 'd2 (AG) (FA)(dA) (FA)(dA) B2 G2 G2'  
X:1
L:1/8
Q:1/2=90
M:2/2
K:D
 (3(ABc) | d2 D2 D2 AG | FA d2 d2 (3(fed) | e2 E2 E2 ed | ce g4 bc' | d'c'ba bagf | gefg dcBA | 
 (Bd)(ce) (df)(eg) | f2 d2 d2 :: (AG) | (FA)(dA) (FA)(dA) | B2 G2 G2 (BA) | GBeB GBeB | 
 c2 A2 A2 gf | (ga) b2 bagf | (ge)(fg) (dc)(BA) | (3(Bcd) (3(cde) (3(def) (3(efg) | f2 d2 d2 :|  