Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:3/4
K:A
['f2 e4', 'e2 ABcA B2 E4 e2'  
X:1
L:1/8
M:3/4
K:A
 A4 Bc | E4 d2 | cBcA f2 | e4 a2 | gfge f2 | e4 d2 | cBcABG | A4 ::"^e" f2 cA f2 | e4 d2 | 
 e2 cA f2 | e4 a2 | a2 gf g2 | a2 gf b2 | B2 e2 ^d2 | e4 e2 | ABcA B2 | E4 e2 | ABcA B2 | E4 e2 | 
 dcdBcd | edec e2 | E2 A2 G2 | A6 :|  