Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['A2 f fed', 'agf Ace'  
X:1
L:1/8
M:6/8
K:D
|: A2 f fed | A2 f fed | Ace GAd | FAd EAc |1 A2 f fed | Af/f/f fed | Ace GAd | Ace gce :|2 
 Aff f2 d | A2 f fed | Ace Gec | gec de/f/g |: a2 a agf | aba agf | Ace G2 d | F2 d EG/A/B |1 
 A2 a agf | Aa/a/a agf | Ace Gec | gec de/f/g :|2 A2 f agf | agf aba | aec gdB | AA/B/c dcB ||  