fixed error in problem_1.rb and started problem_2.rb