Modified code and declared new classes.Refracted ACImpl class.