assign function

Tracks genets through time