Use of recursive function