refactored cal methods into CalHelper class