ruby- problem1