simple Class utility

fixed a bug in super class initiating