Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=150
M:4/4
K:G
['gf efed BedB A2 AG AcBA GFGA', 'g2 fg'  
X:1
L:1/8
Q:1/8=150
M:4/4
K:G
 gf | efed BedB | A2 AG AcBA | GFGA BA (3Bcd | e2 A2 A2 gf | efed BedB | A2 AG AcBA | GFGA BdAc | 
 B2 G2 G2 :| A2 | BGBd g2 fg | agfg e2 d2 | g2 fg edBd | e2 A2 A2 fg | agfa g2 fe | dBAG AcBA | 
 GFGA BdAc | B2 G2 G2 :|  