Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['', 'fe dGBG dGGB dGBG AG E2 dGBG', 'gbag fdef'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
 fe |: dGBG dGGB | dGBG AG E2 | dGBG defg |1 afdf g2 :|2 af (3def g2 || fe | dggf gbag | 
 fdef gfef | dggf gbag | fede fe e2 | dggf gbag | fdef gedB | c2 cA BAGB | dfga bg g2 |]  