It is not encouraged extending a native object as the code can be interfered by others and leading errors hard to debug.