Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/2
K:Edor
['E2 BE dEBE', 'd2 c2 ec'  
X:1
L:1/8
M:2/2
K:Edor
 D |"Em" E2 BE dEBE | E2 BE"D" AFDF |"Em" E2 BE dEBE | BABc"D" dAF :| A |"D" d2 fd"A" c2 ec | 
"D" defg afge | d2 fd"A" c2 ec |"Em" BABc"D" dAFA |"D" d2 fd"A" c2 ec |"D" defg afge | 
 afge"A" fdec |"Em" BABc"D" dAF |]"^Last time" x E8 |]  