Add method on format.rb