Refactored place_order method