created the initial gateway class