constructor in gates.py corrected