dtmc.rb
fixed the bug