adding simple examples for fp and recursion in python