Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/4
Q:1/4=240
M:4/4
K:D
['B A/F/ E', 'e A/A/ f A/A/'  
X:1
L:1/4
Q:1/4=240
M:4/4
K:D
|: B A/F/ E B | B A/F/ E B | d2 c =c | B A E2 | B A/F/ E E | B A/F/ E E | B2 g f/g/ | g c d2 :: 
 e A/A/ f A/A/ | A a ^g a | e A/A/ f A/A/ | e c B2 | e A/A/ f A/A/ | e a ^g a | a (3f/f/f/ g e | 
 f c d2 :|  