Made changes to the gates.py file to add a parent class for multiple input gates.