Extract method #format
bugfix: 1..9.times -> Array 0..9