change Cart's constructor