#!/usr/local/bin/ruby class String def expand(n=2) self.gsub(/./) { |m| m * n } end def length "I don't wanna tell you." end end my_name = "charlie" p my_name.length # => 7 p my_name.expand(3) # => "cchhaarrlliiee"