Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:2/2
K:G
['', 'd2 cA', 'de fgaf |1', 'fd dcAc BG G2 :|2 gbag fdcA'  
X:1
L:1/8
M:2/2
K:G
 dcS"^A" |: TBABc dcAc | BGGB d2 cA | BABc |1 d2 cA | d2 cA BG G2 :|2 d2 de | fdcA BG G2 ||"^B" |: 
 fgaf g2 fd | d^cAc d2 de | fgaf |1 g2 fd | dcAc BG G2 :|2 gbag | fdcA BGASc |]  