Assemble a piece of music following the alphabetical representation and incorporating the provided motif.
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
['GEDG Bdeg', 'fg abaf', 'Af egab B2 ed caAa Ba (3cea', 'dBcd efed ^ceae f2 ge fdcA GEDG']  
X:1
L:1/8
Q:1/8=150
M:2/2
K:G
 BA | GEDG Bdeg | bage dBcd | efed ^ceae | f2 ge fdcA | GEDG Bdeg | bdbg d2 cd | e3 f gedf | 
 g2 b2 g2 :|[K:D] fg |: abaf (3edB Af | egab B2 ed | caAa Ba (3cea |1 bfdf A2 df :|2 d2 a2 d2 || 
[K:G]"^Part A repeat" BA | GEDG Bdeg | bage dBcd | efed ^ceae | f2 ge fdcA | GEDG Bdeg | 
 bdbg d2 cd | e3 f gedf | g2 b2 g4- | g4 z4 |]  