Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:Edor
['E2 BE', 'd2 fd c2 ec'  
X:1
L:1/8
M:4/4
K:Edor
 E2 BE dEBE | E2 BE ADFA | E2 BE dEBE | BABc dAFA :| d2 fd c2 ec | defg afge | d2 fd c2 ec | 
 BABc dAFA | d2 fd c2 ec | defg afge | afge fdec | BABc dAFD :|  