Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:1/8=160
M:9/8
K:G
['BAG BdB', 'edc Bcd'  
X:1
L:1/8
Q:1/8=160
M:9/8
K:G
 B3 BdB c2 d | BAG BdB ABc | BAG BdB ceg | dBG GAG G2 D :| G2 g edc Bcd | ecA ABA A2 d | 
 gfg edc Bcd | gdB GAG G2 d | gfg edc Bcd | ecA ABA A2 A | def gfe def | gbg agf gdc ||  