rewrite class as function and move it to a separate file
failing test for iter_payday_events