environment test main
new environment class, abstracting several objects