Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:6/8
K:D
['A d2 d', 'ecA ecA e2 c ABc dcB'  
X:1
L:1/8
M:6/8
K:D
|: A | d2 d dcB | A2 G F2 A | d2 d dcd | e3- e2 A | f2 f fed | g2 g g2 g | fed ABc | d3- d2 :: d | 
 ecA ecA | e2 c ABc | dcB A^GA | B2 ^G E3 | ecA ecA | e2 c ABc | dcB EF^G | A3- A2 :|  