Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
['a>f d<f']  
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
|: B | A>F A<B A>F A<d | B>A B<d e/e/e e2 | d>f f>d e>B d>A | B<d A>F D/D/D DB | A>F A<B A>F A<d | 
 B>A B<d e/e/e e2 | d>f f>d e>B d>A | B<d A>F D/D/D Df | a>f d<f a>f d<f | e>d e>f e/e/e e>f | 
 a>f d<f a>b a<f | e>d e>f d/d/d df | a>f d<f a>f d<f | e>d e>f e/e/e e>f | d<f f>d e>B d>A | 
 B<d A>F D/D/D D :|  