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
['D D (3E/F/G/ AA AB F2 Fd', 'B2 AB de'  
X:1
L:1/8
M:2/4
K:D
|: D | D (3E/F/G/ AA | AB F2 | Fd BA | B/d/B/A/ FD | B2 AF | DE FA | AB FE | D2 D :| d | B2 AB | 
 de fa | e2 fe | ed BA | B2 AB | de fa | ab (3fed | e2 ed | B2 AB | de f z | e2 fe | ed BA | 
 B2 AF | DE FA | AB FE | D2 D2 ||  