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
['A2 BA dABA efed BAFE', 'BAFE F2 AF BFAB B/B/ded fede f2'  
X:1
L:1/8
M:4/4
K:D
 A2 BA dABA | efed BAFE | F2 AF BFAB | B/B/ded fedB | A2 BA dABA | efed BAFE | FABA Bded |1 
 efed B2 dB :|2 efed d2 e2 || f2 bf afed | efed BAFE | F2 AF BFAB | B/B/ded fede | f2 bf afed | 
 efed BAFE | FABA Bded |1 efed B2 de :|2 efed d4 ||  