Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/2
K:Edor
['(gf)eg Bgeg'  
X:1
L:1/8
M:2/2
K:Edor
 F |"Em" EBBG"D" TFDDF |"Em" EBBF GABc |"D" dBAd TFDAF |"Em" EB"D"AF"Em" GE E2 :|"Em" (gf)eg Bgeg | 
"D" fdad"G" bd"D"ad |"Em" (gf)eg Bgeg |"D" fdaf"Em" Tgeef || |"Em" (gf)eg Bgeg |"D" fdad"Bm" bdad | 
"Em" (gf)ef"G" deBd |"D" AdFA"Em" BEE |]  