Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
['G2 BA', 'f2 e2', 'ef gfed'  
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
"^Part A" D2 |S G2 BA G2 BA | GABc d2 ef | gfed edcB | cBAF GFED | G2 BA G2 BA | GABc d2 ef | 
 gfed egfa | gbaf g2 :|"^Part B" B2 | e2 ef g2 ga | b2 g2 f2 e2 | d2 de f2 fg | a2 f2 e2 d2 | 
 e2 ef g2 ga | b2 g2 f2 e2 | b^abc' b=agf | e2 g2 e2"_DS" :|"^Part A repeated" D2 | G2 BA G2 BA | 
 GABc d2 ef | gfed edcB | cBAF GFED | G2 BA G2 BA | GABc d2 ef | gfed egfa | gbaf !fermata!g4 |]  