Create parent class and subclass