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=140
M:2/2
K:G
['d2 d2', 'd2 d2'  
X:1
L:1/8
Q:1/8=140
M:2/2
K:G
"^allegro moderato" G4 D2 GA | BABc B2 G2 | d2 d2 d2 ef | geag f2 d2 |"^5" b4 a2 gf | gefg a^cde | 
 fgfg fagf | e3 d d4 ||"^9" a4 f4 | egfe ^d2 B2 | bfga bagf | f4 e2 Bc |"^13" d2 d2 d2 cB | 
 c2 c2 c2 BA | BAGA BcdB | A3 G G4 |]  