Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/4
Q:1/2=160
M:2/2
K:Bb
['d e f', 'f g'  
X:1
L:1/4
Q:1/2=160
M:2/2
K:Bb
 d e f e | d2 B2 | d e f (e/d/) | c4 || e f g f | e4 | e f g f | e4 | d e f e | d4 | d e f e | d4 | 
 d c d e/d/ | c B c c | d c d e/d/ | c4 | f g a g | f4 | f g a g | f4 | f g f e | d c d e | d2 c2 | 
 B c d e | f g f e | d c d e | d2 c2 | B4 |]  