Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:4/4
K:D
['B<G d>B', 'B<G B<d e>d c<B A>F A<d'  
X:1
L:1/8
M:4/4
K:D
 F>G A<f e>d B<d | B<G d>B A2 A2 | B<G d>B A<F d>F | E<e e>d c2 (3cBA | F>G A<f e>d B<d | 
 B<G d>B A2 A2 | B<g (3fed A>a f>d | (3cBA f>e d2 d2 || B<G B<d e>d c<B | A>F A<d f2- f>d | 
 c<A c<e f>e d>c | (3dcB c>^A B2 =A2 | B<G B<d e>d c<B | A>F A<d g2 f>g | a>g (3fed B>g (3fed | 
 (3cBA f>e d2 d2 ||  