Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/2=100
M:4/4
K:D
['A2 FD', 'D3 A defd gfef defd edcA defd'  
X:1
L:1/8
Q:1/2=100
M:4/4
K:D
|: B | A2 FD G2 GB | A2 FD F2 FB | A2 FD G2 GB | AF dF D3 :: A | defd gfef | defd edcA | 
 defd gfeg | faef d3 :|  