Updated createOrder method()