Changed 'extend' statements to 'extends'