Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:F
['', 'B2 dB DFBd cBcA', 'ABcA dgfa gfga ag{a}gf gfdc (3Bcd BG'  
X:1
L:1/8
M:4/4
K:F
 A |: B2 dB DFBd | cBcA FAcA | B2 dB DFBd | cBcA BGGA | BDGA BDGB | ADFA c2 =Bc | d g3 dc=Bd |1 
 c=BcF DGGA :|2 c=BcF DGG^f |:[K:G] g2 dg Bdga | =f2 cf Acfa | gfgd ABcA | dgfa gfga | 
{b} ag{a}gf gfdc | (3Bcd BG DE=FA | d g3 dcBd | cBcF DGGf :|  