Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:Amix
['e2 AB', 'a a2 b'  
X:1
L:1/8
M:4/4
K:Amix
|: e2 AB cdeB | dzBD GABd | e2 AB cdea |{ba} gedB BA A2 :: a a2 b aged | cdef gzef | a a2 b agef | 
 gedB BA A2 | a a2 b aged | cdef gzfg | afge fdef |1 gedB BA A2 :|2 gedB BAGE | A8 ||  