implemented a couple practice recursion problems