Create a composition based on the provided motif, following the specified musical structure.
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
['ga bgdB GBdg fecA E2 e2 dcAF', 'a2 gecA GABc defg a2 b2 agec', 'G2 B2'  
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
"^Part A" ga | bgdB GBdg | fecA E2 e2 | dcAF DcBA | GABc d2 ga | bgdB GBdg | fecA E2 e2 | 
 dcAF DcBA | G2 B2 G2 :|[K:D]"^Part B" a2 | gecA GABc | defg a2 b2 | agec Agfe | fdAF D2 a2 | 
 gecA GABc | defg a2 b2 | agec Agfe |1 d2 f2 d2 :|2 d2 c2 =c2 ||[K:G]"^Part A repeated" ga | 
 bgdB GBdg | fecA E2 e2 | dcAF DcBA | GABc d2 ga | bgdB GBdg | fecA E2 e2 | dcAF DcBA |1 
 G2 B2 G2 :|2 G2 B2 G4 |]  