Changed from Integer() to to_i method