recursion is functional
myls version 1