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
['dc BB/B/ Bc', 'F3 A AFED'  
X:1
L:1/8
M:4/4
K:D
 dc | BB/B/ Bc BAFE | AA/A/ AB AF dc | BB/B/ Bc BAFD | A2 A>B AF || DE | F3 A AFED | E3 F FEDE | 
 F3 A AFED | B2 B>c B2 ||  