Handle abstract classes properly