Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/4
K:D
['cA A2', 'D2 A>BAG F>G A2 G>AGF E>F G2'  
X:1
L:1/8
M:2/4
K:D
 d>efd | cA A2 | BG G2 | cA A2 | d>efd | cA A2 | BGAF | D2 D2 || A>BAG | F>G A2 | G>AGF | E>F G2 | 
 A>BAG | FA d2 | BGAF | D2 D2 ||  