improved number_of_seconds.rb