Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
Q:1/8=180
M:2/2
K:Emin
['ef gfed BAGF GBAF E3 F |1', 'gebe gebe afdf |1 gfef gebe afde'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:Emin
 ef | gfed BAGF | GBAF E3 F |1 GBAF GAB^c | dBBA Be :|2 GBAF GABA | Beed e2 || ef | gfef gebe | 
 gebe afdf |1 gfef gebe | afde fe :|2 gebe g2 fg | afdf e4 |]  