function res = sumrec(vec)
if length(vec) == 1
   res = vec(1);
   %!! The Base Case
else
   res = vec(1)+sumrec(vec(2:end));
   %!! Simplification and recursion
end
