changed cal.rb, moved code to calendar.rb