The Gate Theory