modified towers.rb