Modify .extend to copy the parent's constructor