Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:4/4
K:D
['EA FDDE']  
X:1
L:1/8
M:4/4
K:D
 F3 EA FDDE | (3FED AG FDDE | F2 EA FDDE | (3FGA Bc d2 BA | F3 EA FDDE | (3FED AG FDDE | 
 F2 EA FDDE | (3FGA Bc d2 cd | e3 d efed | cdef g2 fg | e3 d efed | cABc d2 cd | e3 d efed | 
 cdef g2 fg | a f3 g e3 | dfec dBAG |]  