Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
['', 'dd e/g/e/c/'  
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
 A2 |: dd e/g/e/c/ | df A2 | ddee | f/e/f/g/ af | dd e/g/e/c/ | df A2 | BABc |1 d2 A2 :|2 d2 fg | 
 aabb | a/b/a/g/ fe | ddee | f/e/f/g/ af | aabb | a/b/a/g/ fe | dd e/g/e/c/ ||1 d2 fg :|2 d2 z2 ||  