Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/2=104
M:2/2
K:G
['B>AGd egdB', 'GGG d BGdG eGdB cedB AAAd BGdG'  
X:1
L:1/8
Q:1/2=104
M:2/2
K:G
 d | B>AGd egdB | cedB AAAd | B>AGd egdB | cedB GGG :| d | BGdG eGdB | cedB AAAd | BGdG eGdG | 
 cedB GGG :|  