create Trait for cart management part