Develop a musical composition centered around the provided motif while maintaining the appropriate form.
X:1
L:1/8
M:2/4
K:G
['EG D2 ED G2 GA B2- B4']  
X:1
L:1/8
M:2/4
K:G
 EG D2 | ED G2 | GA B2- | B4 | ABGA | EDEG | ABBA | G4 | A2 E2 | D4 | EGGE | D4- | D4 |]  