Added gateway class and ManageOrder function