Examples for different types of recursion