Formulate a musical piece by utilizing the specified motif and alphabet-based structure.
X:1
L:1/4
M:4/4
K:A
['e d']  
X:1
L:1/4
M:4/4
K:A
 E | A B c d | e c z e | f e d c | B2 z E | A B c d | e c z e | e d c B | A2 z2 | A A A | d2 d | 
 e d e | f2 A | A f f | e d c | B c d | c2 c | e2 c | e d c | B c B | A2 z |]  