Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:Bb
['d2 d2', 'd2 d2'  
X:1
L:1/8
M:4/4
K:Bb
 Bc | d2 d2 d2 cB | Bc"^(a)" d2 cB !fermata!G2 | e2"^(b)" e2 d2 c2 | B2 d2 !fermata!c2 z F | 
 B>A Bc BAGF | B2 B2 cd e2 | f2 f2 e2 dB | c2 c2 B2 || Bc | d2 d2 d2 cB | 
 Bc"^(a) var." dc cB !fermata!G2 | e2"^(b) var." ee d2 c2 | B2 d2 !fermata!c2 z F | B>A Bc BAGF | 
 B2 B2 cd e2 | f3 d e2 dB | c2 c2 B2 |]  