Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=120
M:2/4
K:G
['', 'BA A/B/c/A/ d2', 'BD BD'  
X:1
L:1/8
Q:1/8=120
M:2/4
K:G
 d/B/ |: A2 BA | A/B/c/A/ d2 | E>D G/E/D | E>D G/E/D | A>A BA | A/B/c/A/ d2 | E/F/E/D/ GE |1 
 D2 DE/G/ :|2 D2 D |: d/c/ | BD BD | BD c>B | AA/G/ AG | FA dd/c/ | BD BD | BD c>B | 
 A/B/A/G/ F/D/E/F/ | G2 G :|  