Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:2/2
K:D
['BE (3EEE', 'f2 fe'  
X:1
L:1/8
M:2/2
K:D
 dc | BE (3EEE BEdE | BE (3EEE BcdB | cA (3AAA cAeA | (3Bcd ef e2 dc | BE (3EEE BEdE | BEdE BcdB | 
 cA (3AAA cAeA | (3Bcd ef e2 |] cA | f2 fe dcBA | Affe d2 de | f2 fe fgaf | ecAc egfe | 
 f2 fe dcBA | fgfe d2 de | f2 fe fgaf | ecAc e2 |]  