Add inheritance from base template