Integrated creation of environment into program