Added the base classes for Portal and Gatekeeper