Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:2/2
K:A
['cd edcd eagf feee e2 cd efec', 'ceAe BeGe'  
X:1
L:1/8
M:2/2
K:A
 cd | edcd eagf | feee e2 cd | efec efec | cBBB B2 cd | edcd eagf | feee e2 cd | efec BABc | 
 A2 AA A2 || e | ^defe =deBe | ceAe BeGe | ^defe =dcdB | BAAA A2 e2 | ^defe =ceBe | ceAe BeGe | 
 BABc defg | agag a2 |]  