Refactored update status method to belong to the order class.