Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
M:4/4
K:A
['E2 A3 E A2 AB cc Bc', 'ed c3 B AB cd'  
X:1
L:1/8
M:4/4
K:A
|: E2 | A3 E A2 AB | cc Bc AB cd | e2 a2 e2 dc | BA Bc B2 E2 | A3 E A2 AB | cc Bc A2 Bc | 
 d2 ef B2 BA | A6 :: ed | c3 B AB cd | B2 E2 E2 GA | B2 e2 B2 AG | FE FG F2 GA | B2 AG F2 FE | 
 E6 Bc | d3 c B2 ed | c3 B AB cd | e2 a2 e2 dc | BA Bc B2 E2 | A3 E A2 AB | cc Bc A2 Bc | 
 d2 ef B2 BA | A6 :|  