Initial commit of environment.c