improve the code template to simplify the reading
Add a tail recursion example