First version of evolution code