updated AC definition to be inline with the professor's suggestion