Added functions.py