some minor changes for the Cart class, renamed module Printer to Formatter and some changes to its methods