code to analyse evolution of the universe