change some gets.chomp to get.strip, change some puts to print