Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:D
['F>F F2', '(3(AAA) F2'  
X:1
L:1/8
M:4/4
K:D
 A,D/E/ | F2 F>F F2 d>B | A2 F>F F2 D>E | F2 d>B A>FD>F | E2 E>E E>A,D>E | F2 F>G AFED | 
 dcde f2 f>e | dcBA GFEF | D2 D>D D2 :: (3(AAA) | F2 (3(AAA) E2 (3(AAA) | F2 D>D D2 AB/c/ | 
 dcBA GAFA | E2 E>E E2 (3(A,A,A,) | D2 (3(A,A,A,) F2 (3(DDD) | AFdF A2 AB/c/ | dcBA GBEA | 
 D2 D>D D2 :|  