adds directions.rb functionality