refactor 001.rb