added Gates.py