Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:D
['F4 G>FG>B', 'd2 F2- F>d'  
X:1
L:1/8
M:4/4
K:D
 A>G | F4 G>FG>B | A2 d2 d>cB>A | F4 G>FG>B | E6 A>G | F4 G>FG>B | A>FA>d f2 e>c | d>AF>A B>GE>C | 
 D2 D2 D2 A>G | F4 G>FG>B | A2 d2 d>cB>A | F4 G>FG>B | E2- E>F E2 A>G | F>GF>E G>FG>B | 
 A2 d2 f2 e>c | d>AF>A B>GE>C | D2 D2 D2 || (3Bcd | e2 d2 F2- F>d | (3cdc B2 E2- E>D | 
 C>DE>F G>AB>c | e>dc>B A2 (3Bcd | e2 d2 F2- F>d | c2 (3BcB E2- E>D | C>DE>F G>AB>c | 
 d2 f2 d>A (3Bcd | e2 d2 F2- F>d | c2 B2 E2- E>D | C>DE>F G>A (3Bcd | (3efe (3dcB A2 (3Bcd | 
 (3efe d2 F2- F>d | (3cdc (3BcB E2- E>D | C>DE>F G>AB>c | e2 d2 d2 ||  