Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/4
M:3/4
K:D
['A A2 G']  
X:1
L:1/4
M:3/4
K:D
 D | D2 F | F2 A | A2 G | E2 E | E G G | G2 B | B2 A | F2 A/d/ | d2 d | c2 B | B A2 | B/ A2 A/ | 
 A2 B | B2 A | A2 G | G F |]  