Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:4/4
K:G
['B d3 e d>Bg>B dBgB aA AB', 'DGBG AGBG', "BGG d dgbg agbg dgbg agec' bagf"  
X:1
L:1/8
M:4/4
K:G
 B | d3 e d>Bg>B | dBgB aA AB | Td^cde dBgB | A/B/c BA BGG :: B | DGBG AGBG | DGBG AGAB | 
 DGBG AGBG | dedc BGG || d | dgbg agbg | dgbg agec' | bagf gfed | efga bgg :|  