created environment class and tests
refactoring and fixing bugs
added pry gem