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
['d2 d def e2 d c2 A', 'A2 G FEF ABA A2'  
X:1
L:1/8
M:6/8
K:D
|: A | d2 d def | e2 d c2 A | B2 B BAF | ABA ABc | d2 d def | e2 d c2 A | B2 A GEF | DED D2 :: B | 
 A2 G FEF | ABA A2 g | fed edB | ded dcB | A2 G FEF | ABA A2 A | Bcd edc | ded d2 :|  