refractor code for the daily_rebiller class