You can’t extend a Base method without importing it first. sum(A) = B[1] is a method definition, this is entirely different from just typing sum(A), because = is an assignment operator.
Seif_Shebl, you are right, that is what i really wanted t do…and it works fine.
what a stupid mistake of mine…
Thanks a lot for the answers to everybody.