Specifically after I initialized the variables in average_hourly_wage to 0, they remain at 0 after the loop and we get a divide by 0 error on return. Likewise the ->pay function call at the end of the main driver is triggering an error for some unknown reason.