Added support for 'extends'