created initial gateway class