Found class variable and chomp.to_i for refactor