added extends as parameter to the class