inital versions of level.rb, alert.rb