Updated functionality with the notation of a cart