Refactored iron.rb