Create duration.rb