Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['Add dcd', 'd2 B dfa afd Bgf gec dcd', 'B AFA'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 G | Add dcd | efg afd | Add dcd | edc d2 :| B | dfa afd | Bgf gec | dcd Bgf | edc d2 :|[M:9/8] B | 
 AFA GEc d2 B | AFA GFE D2 F/G/ | AFA GEa a2 g | fdf gec d2 :|  