use class ... extends rather than .extend()