Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:2/4
K:D
['dd dd fa fd ee ee ce'  
X:1
L:1/8
M:2/4
K:D
|:"D" dd dd | fa fd |1"A7" ee ee | ce cA :|2"A7" ag fe |"D" d2 d2 ::"^Down an octave:""D" DD DD | 
 FA FD |1"A7" EE EE | CE CA, :|2"A7" AG FE |"D" D2 D2 :|  