Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:4/4
K:C
['B AGEF GEcE dEcE D2 (dc) AGEG', 'dcAB cAdB', '(Tage)f =geaf gedg eaa^g (Taga)a agea e2', 'dfed cAAB'  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:D]SOSOO .!fermata!PMTuCO MD3 B AGEF | GEcE dEcE | D2 (dc) AGEG | 
 (3(ABA) (AG) EFGE | D3 B AGEF | GEcE dEcE | D2 (dc) AGEG | (3(ABA) (AG) (TED) D2 || d2 e dcAB | 
 cAdB cAGB | Addc (Tdcd)d | cAGE (TED) D2 | (Tdcd)e dcAB | cAdB cAGE | D2 (3(EFG) AddB | 
 cAGE TED D2 || eaa^g (Tage)f | =geaf gedg | eaa^g (Taga)a | agea e2 d2 | eaa^g agef | =geaf gedB | 
 A2 (3(Bcd) e2 dB | cAGE TED D2 || dfec dfed | cAAB c2 (AG) | Ad{e}dc (dcd)d | eaag e2 d2 | 
 dcdB dfed | cAAB cdcA | GAcd (3(efe) de | cAGc (3(ABA) GE :|  