class Smile

  def self.loop(string)
    i = 0
    word = string.split("")
    while i <= word.length
    print $/ * (0) + "" * (i) + "#{word[i]}"
    i = i + 1
    sleep(0.25)
    end
  end

  def self.foo(count,string)
    c = 0
    while c < count
      (c+1).times { Smile.loop(string) }
      puts
      c = c + 1
    end
  end
end
  
Smile.foo(3,"Smile!")