First version of the environment generator