Added first version of Gates