modified A Class