Compose music with the following musical form, using the given motif as a basis.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['B d2 (3efg BGdB Aaag fefd gfgd', 'BGDG EGDB'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
 B | d2 (3efg BGdB | Aaag fefd | gfgd ecdB | cedc BGG :| c | BGDG EGDB | cBAB cedc | BGDG EGDB | 
 cedc BGGc | BGDG EGDB | cBAB cedc | Bggf eaag | fdcA BG G2 |]  