Slight changes: use directive 'extend' instead of a class.