Organize operations in cal.rb