First commit of functions.py