Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/4
K:D
['g aggf f3 a gfed e3 g', 'd3 Ac eeee e2 df aaaa a3'  
X:1
L:1/8
M:2/4
K:D
 g | aggf | f3 a | gfed | e3 g | fedc | d3 g | fedc | d3 :: Ac | eeee | e2 df | aaaa | a3 a | 
 aggf | f3 a | gfed | e3 g | fedc | d3 f | fedc | d3 :|  