Create a composition based on the provided motif, following the specified musical structure.
X:1
L:1/8
Q:1/4=90
M:2/4
K:G
['B ce Ac BdGc BG dB (3ABA', 'BG ec', 'G d gddg addg a>bag fddf gfed'  
X:1
L:1/8
Q:1/4=90
M:2/4
K:G
"^NB" B | ce Ac | BdGc | BG dB | (3ABA Ac | BG-GB | cAAf | gecB | G>A"^NB2" G :: d | BG ec | dBgd | 
 BG dB | (3ABA Ad | BG ec | dBge | d>"^NB3"fdB | (3GAG"^NB2" G :: d | gddg | addg | a>bag | fddf | 
 gfed | edcB | cAdB | (3GAG G :|  