added registerAbstract method for abstract class