Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:2/2
K:C
['d>e f2 A4']  
X:1
L:1/8
Q:1/4=120
M:2/2
K:C
[K:Ddor]S (1:2:1f3 f e2 d2 | d>e f2 A4 | A>B c2 c3 c | f>g f2 e>d c2 | f2 f2 e3 d | d>e f2 A4 | 
 _B>A G2 A3 A | A>B c2 d4 |]  