added new variables for unit conversion- ex4.rb