finished first edit of main.rb without sql code