working on lineareq.rb