Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:C
['[M:4/4][K:G] .G2 Bd gdBG GABG AE E2', 'fd d2'  
X:1
L:1/8
M:4/4
K:C
[M:4/4][K:G] f"^gan ainm"[Q:1/8=180] .G2 Bd gdBG | GABG AE E2 | G2 Bd g2 dc | (3Bcd Ac BG G2 :| 
 fa a2 fd d2 | fdag fd d2 |1 faag fd d2 | edef g2 ag :|2 bgaf gfef | dfaf gedB ||  