Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['edcB A2', 'd2 fd'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 f | edcB A2 cA | eAcA e2 ef | edcB A2 de | fage dcdf | edcB A2 cA | eAcA e2 ef | edcB A2 de | 
 fage dAFG || d2 fd Adfd | A2 (3cBA eAcA | d2 fd Adfg | (3agf ge dAFA | d2 fd Adfd | 
 A2 (3cBA eAcA | d2 fd Adfg |1 (3agf ge dcdF :|2 agfe d4 |]  