You used the Extends keyword more than once and/or on a parameter other than the first parameter.
Should be rewritten as:
Extends keyword