Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['BGAG EGDG', 'G2 Bd'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 BGAG EGDG | EAAG A2 GA | BGAG EGDG | EG G2 EG G2 :| G2 Bd eddc | BGdG BAAB | G2 Bd eddc | 
 BGdG BGGD | G2 Bd eddc | BGdG BAAB | G2 Bd edef | gbaf gedc ||  