Hey Dan, it is probably an issue with the name of calendar within the class dividend_calendar since it has the same name as the calendar module which you import at the beginning. Try renaming the function named calendar within the dividend_calendar class.