optional parent type for a class

Added optional parent type for a class which can be activated by pressing :