Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['(3BBB (3GGG', 'A>d f2'  
X:1
L:1/8
M:4/4
K:D
 (3AAA (3FFF (3AAA (3FFF | (3BBB (3GGG (3BBB (3GGG | (3ABA F2 (3ABA F2 | (3EEE (3GGG (3BBB (3GGG | 
 A>DF>G A>DF>d | B>DG>A B>dc>B | (3AAA (3dcB (3AAA (3GFE | (3DDD (3CCC D2 z2 || A>df>d A>d f2 | 
 A>ce>c A>c e2 | A>df>d A>df>d | e2 c>e d>cd>B | A>d f2 a>df>d | A>c e2 g>ce>c | d2 c2 A2 G>E | 
 D2 C2 D4 ||  