added class and subclass templates