Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:3/4
K:A
['A3 agf e2 d2 c2', 'B6 D4 e2 (ed)(dc) c2 E4 d2'  
X:1
L:1/8
M:3/4
K:A
 A3 agf | e2 d2 c2 | A3 agf | e2 d2 c2 | fdfg a2 | eceg a2 | d2 fedc | B6 :: D4 e2 | (ed)(dc) c2 | 
 E4 d2 | (dc)(cB) B2 | A3 agf | e2 d2 c2 | (3fed c2 B2 | A6 :|  