functions.py