Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/4
M:3/4
K:D
['f d', 'e2 a a f g g2 f'  
X:1
L:1/4
M:3/4
K:D
 e | f d f | g2 f | f d e | e2 :: a | a f g | g2 f | e d c | d2 :|  