Added recursive function to prompt.c and added tree.c to practise recursive functions