Created logic for GetOrder