Recursive function for activity printout