Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:2/2
K:G
['(3def gG G2 EGDC B,G,B,D GBdg', 'G2 GA BGBd edBd g2 bg edBd'  
X:1
L:1/8
M:2/2
K:G
 (3def | gG G2 EGDC | B,G,B,D GBdg | e2 ce d2 Bd | cAAG A2 (3def | gG G2 EGDC | B,G,B,D GBdg | 
 ecAG FAdc | BGGF G2 :| GA | BGBd edBd | g2 bg edBd | gfge dBGA | BAAG Ad^cd | BG G2 EGcE | 
 EGcE DGBd | gfge dBcA | BGGF G2 :|  