added changes to variables - ex4.rb