Creating new Apclasses.