Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/4=100
M:4/4
K:Dmin
['=B A']  
X:1
L:1/8
Q:1/4=100
M:4/4
K:Dmin
 A | c c =B A B c d d | e d =B A G A D>D | c c =B A B c d d | e A (=B/A) G A B cE | 
 D D E G A2 A G | E2 e2 E2 GG | D D E G A2 d =B | c A G E D3 |]  