Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
Q:1/2=50
M:2/4
K:D
['dD FA', 'f/g/ af g>e fd df/g/ a>f g>f'  
X:1
L:1/8
Q:1/2=50
M:2/4
K:D
"^Primo,Lively" f2 e2 | dD FA | d>e f>e |"^sic" dD FA | GE Ef/e/ | dD FA | d>e f>e | dA Bc | dDD :: 
 f/g/ | af g>e | fd df/g/ | a>f g>f | eA Afg/ | a>f g>e | f>d e>c | dA Bc | dDD :|  