Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['.d z2 A BAFD DDdA BAFD EDFD', 'BAFE (3DDD FA GBdB'  
X:1
L:1/8
M:4/4
K:D
|: .d z2 A BAFD | DDdA BAFD | EDFD EDFD | EDFA BABc | .d z2 A BAFD | DDdA BAFD | EDFD GDAD |1 
 BABc dABc :|2 BABc dAde |: f3 f ec A2 | BABd BAFE | (3DDD FA GBdB | Acef ggfe | f2 df ecAc | 
 Bcdc BAFE | (3DDD FA GBdB |1 Acec dA de :|2 Acec dABc ||  