Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:6/8
K:G
['d d2']  
X:1
L:1/8
M:6/8
K:G
 D | G2 G G2 A | G2 A B2 c | B2 B B2 B>AG | AGF G2 D | G3 | GAB c2 c | B>BB B>AG | AEF G2 d | 
 d2 d d2 d | e2 d d2 B | BBB B2 B | B>cd e2 e | ddd dcB | cE F G2 z |]  