set1.rb with all three solutions and additional notes