Functionalized version of zellers.py